#include <iostream>

int main() {
    int A,B;
    scanf("%d%d",&A,&B);
    if (A%B == 0){
        printf("Sao Multiplos");
    } else if (B%A == 0){
        printf("Sao Multiplos");
    } else{
        printf("Nao sao Multiplos");
    }
    return 0;
}
